package com.ziyun.pop.modules.order.utils;

import com.ziyun.pop.common.utils.HttpClientUtil;
import com.ziyun.pop.common.utils.HttpClientUtil;

/**
 * 订单分配
 * @author gaosheng
 * @date 2018-10-25 13:35
 */
public class OrderAllotUtil {

    /**
     * 192.168.1.52 本地
     * 120.27.237.180 测试
     */

    /**
     * 找工厂
     * @param jsonParam
     * @return
     */
    public static String findQuoteResult(String jsonParam){
        return HttpClientUtil.doPostJson("http://192.168.1.52:9100/goods/getGoodsForOrderErp", jsonParam);
    }

    /**
     * 分配订单
     * @param jsonParam
     * @return
     */
    public static String allotQuoteResult(String jsonParam){
        return HttpClientUtil.doPostJson("http://192.168.1.52:9300/erp/allotFactoryOrder", jsonParam);
    }

}
